package com.examonline.utils.result;

import lombok.Data;

import java.io.Serializable;

public enum ResultEnum implements Serializable {
    //这里是可以自己定义的，方便与前端交互即可
    UNKNOWN_ERROR(-1,-1,"未知错误"),
    SUCCESS(1,10000,"成功"),
    USER_NOT_EXIST(1,1,"用户不存在"),
    USER_IS_EXISTS(1,2,"用户已存在"),
    DATA_IS_NULL(1,3,"数据为空"),
    UN_DEVELOP(1,404,"该功能未开发!!!"),
    USERNAME_PASSWORD_IS_NULL(1,200,"用户和密码不能为空！！"),
    TYPE_UNDEFINED(1,200,"用户类型不正确")
    ;
    private Integer status;
    private Integer code;
    private String msg;

    ResultEnum(Integer status,Integer code, String msg) {
        this.code = code;
        this.msg = msg;
        this.status=status;
    }

    public Integer getStatus() {
        return status;
    }


    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
